DATA FILES -------------------------------

cleaned_svy_dat.Rds — Cleaned survey dataset used for the main analyses.
study 1 data.csv — Raw data for Study 1.
study 2 data.csv — Raw data for Study 2.
text_data.rds — Data set of mananeras, with GPT classifications.
val_set.rds — Dataset with human validation of GPT classification.

CODEBOOKS -------------------------------------------------

study 1 codebook.pdf — Survey questionnaire for Survey 1
study 2 codebook.pdf — Survey questionnaire for Survey 2
text_data_codebook.pdf — Codebook describing text data variables.

SCRIPTS AND NOTEBOOKS -----------------------------------

1_text_analysis.R — Plots text data (Figure 1) and performs validation checks.
2_clean_exp_data.R — Cleans and merges raw experimental data files.
3_descriptives.R — Generates summary statistics and descriptive plots (Figure 3).
4_main_analysis.Rmd — Performs main analysis of experimental results (Figures 2, 4, and 5).
5_analysis_subset.Rmd — Runs subset analyses among lower SEL reported in the appendix.
PNAS Replication File.Rproj — RStudio project file linking all replication materials.


REPRODUCTION INSTRUCTIONS ---------------------------------

Open PNAS Replication File.Rproj in RStudio.

Ensure all data files are located in the project’s main directory.

Create folders "figures" and "tables" for saving outputs. 

Run the scripts in the following order:
a. 1_text_analysis.R (optional, for text analysis replication)
b. 2_clean_exp_data.R
c. 3_descriptives.R
d. 4_analysis_subset.Rmd
3. 5_main_analysis.Rmd

Output tables and figures will be saved in "figures" and "tables"